<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
</html>
<script>
  var arr = ["你好", "世界", "我是", "程序员"];
  var arr = new Set(["你好", "世界", "我是", "程序员"]);
  // for(let item of arr){
  //     console.log(item);
  // }
  arr.forEach((item, index) => {
    console.log(`这是第${index + 1}个：${item}`);
  });
</script>
